from script.get_user_info.rating.codeforces import cf_rating
from script.testing.base import test_id_is_ok
from script.testing.config.config import twice_check_time_sleep
from script.get_user_info.problem_number.codeforces import cf_problem_number
import time

def test_cf_id_is_ok(uid ) :
    if not test_id_is_ok(uid, cf_rating):
        time.sleep(twice_check_time_sleep)
        try :
            cf_problem_number(uid)
            return True
        except :
            return False
    else :
        return True

if __name__ == '__main__':
    print(test_cf_id_is_ok("HoshinoChan"))


